package com.itheima.day01.Demo05;

public class Student extends Person{

    public Student(String name, int age) {
       /* this.name = name;
        this.age = age;*/
       super(name,age);//
    }

    public Student() {//无参构造方法继承了父类
    }

    public void study(){
        System.out.println("好好学习，天天向上");
    }
}
